<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
	<div class="animate-dropdown"><!-- ========================================= BREADCRUMB ========================================= -->
<div id="breadcrumb-alt">
    <div class="container">
        <div class="breadcrumb-nav-holder minimal">
            <ul>
                <li class="dropdown breadcrumb-item">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        Media Center
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Computer Cases &amp; Accessories</a></li>
                        <li><a href="#">CPUs, Processors</a></li>
                        <li><a href="#">Fans, Heatsinks &amp; Cooling</a></li>
                        <li><a href="#">Graphics, Video Cards</a></li>
                        <li><a href="#">Interface, Add-On Cards</a></li>
                        <li><a href="#">Laptop Replacement Parts</a></li>
                        <li><a href="#">Memory (RAM)</a></li>
                        <li><a href="#">Motherboards</a></li>
                        <li><a href="#">Motherboard &amp; CPU Combos</a></li>
                        <li><a href="#">Motherboard Components</a></li>
                    </ul>
                </li>
                <li class="breadcrumb-item">
                    <a href="#">Home</a>
                </li>
                <li class="breadcrumb-item current">
                    <a href="#">Authentication</a>
                </li>
            </ul>
        </div><!-- /.breadcrumb-nav-holder -->
    </div><!-- /.container -->
</div><!-- /#breadcrumb-alt -->
<!-- ========================================= BREADCRUMB : END ========================================= --></div>
</header>
<!-- ============================================================= HEADER : END ============================================================= -->		<!-- ========================================= MAIN ========================================= -->
<main id="authentication" class="inner-bottom-md">
	<div class="container">
		<div class="row">
			
			<div class="col-md-6">
				<section class="section sign-in inner-right-xs">
					<h2 class="bordered">登录</h2>
					<p>欢迎回来，请输入您的用户名和密码</p>

					<div class="social-auth-buttons">
						<div class="row">
							<div class="col-md-6">
								<button class="btn-block btn-lg btn btn-facebook"><i class="fa fa-facebook"></i>使用QQ账号登录</button>
							</div>
							<div class="col-md-6">
								<button class="btn-block btn-lg btn btn-twitter"><i class="fa fa-twitter"></i> 使用新浪微博账号登录</button>
							</div>
						</div>
					</div>
                                        <?php $form= ActiveForm::begin([
                                            'options'=>['class'=>'login-form cf-style-1','role'=>'form'],
                                            'fieldConfig'=>[
                                                'template'=>'<div class="field-row">{label}{input}{error}</div>'
                                            ],
                                            'action'=>['member/auth'],
                                        ])?>
                                        <?php echo $form->field($model, 'username')->textInput(['class'=>'le-input'])?>
                                        <?php echo $form->field($model, 'userpass')->passwordInput(['class'=>'le-input'])?>

                        <div class="field-row clearfix">
                                    <?php echo $form->field($model, 'rememberMe')->checkbox([
                                        'class'=>'le-checbox auto-width inline',
                                        'template'=>'<span class="pull-left"><label class="content-color">{input} <span class="bold">记住我</span></label></div>'
                                    ])?>
                        	
                        	<span class="pull-right">
                        		<a href="#" class="content-color bold">忘记密码 ?</a>
                        	</span>
                        </div>

                        <div class="buttons-holder">
                            <?php echo Html::submitButton('安全登录',['class'=>'le-button huge'])?>
                            <!--<button type="submit" class="le-button huge">安全登录</button>-->
                        </div><!-- /.buttons-holder -->
                        <?php ActiveForm::end()?>

				</section><!-- /.sign-in -->
			</div><!-- /.col -->

			<div class="col-md-6">
				<section class="section register inner-left-xs">
					<h2 class="bordered">新建账户</h2>
					<p>创建一个属于你的账户</p>
                                        <?php
                                        if(Yii::$app->session->hasFlash('info')){
                                            echo Yii::$app->session->getFlash('info');
                                        }
                                        ?>
                                        <?php $form= ActiveForm::begin([
                                            'options'=>[
                                                'class'=>'register-form cf-style-1',
                                                'role'=>'form',
                                            ],
                                            'action'=>['member/reg'],
                                        ]);?>
					<div class="field-row">
                                        <?php echo $form->field($model, 'useremail')->textInput(['class'=>'le-input'])?>
                        </div><!-- /.field-row -->

                        <div class="buttons-holder">
                            <?php echo Html::submitButton('注册',['class'=>'le-button huge'])?>
                        </div><!-- /.buttons-holder -->
                                        <?php ActiveForm::end()?>

					<h2 class="semi-bold">加入我们你会享受到前所未有的购物体验:</h2>

					<ul class="list-unstyled list-benefits">
						<li><i class="fa fa-check primary-color"></i> 快捷的购物体验</li>
						<li><i class="fa fa-check primary-color"></i> 便捷的仙丹方式</li>
						<li><i class="fa fa-check primary-color"></i> 更加低廉的商品</li>
					</ul>

				</section><!-- /.register -->

			</div><!-- /.col -->

		</div><!-- /.row -->
	</div><!-- /.container -->
</main><!-- /.authentication -->
<!-- ========================================= MAIN : END ========================================= -->		